package com.songlanyun.modules.distributionconfig.model;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.songlanyun.common.drive.ValueObject;
import com.songlanyun.common.enums.GoodsConstant;
import lombok.Data;

import javax.validation.constraints.DecimalMax;
import javax.validation.constraints.DecimalMin;
import java.math.BigDecimal;
import java.util.Date;

@Data
public class DistributionShopConfigDTO implements ValueObject {
    /**
     * 是否开启分佣
     */
    private Boolean open;

    /**
     * 计算模式，0固定价格，1固定比例
     */
    private Integer computeMode;
    /**
     * 一级固定价格
     */
    @DecimalMin(value = "0",message = "一级固定价格最小值是0")
    @DecimalMax(value = "99999999",message = "一级固定价格最大值是99999999")
    private BigDecimal firstLevelPrice;
    /**
     * 二级固定价格
     */
    @DecimalMin(value = "0",message = "二级固定价格最小值是0")
    @DecimalMax(value = "99999999",message = "二级固定价格最大值是99999999")
    private BigDecimal secondLevelPrice;
    /**
     * 一级固定比例
     */
    @DecimalMin(value = "0",message = "一级固定比例最小值是0%")
    @DecimalMax(value = "50",message = "一级固定比例最大值是50%")
    private BigDecimal firstLevelRatio;
    /**
     * 二级固定比例
     */
    @DecimalMin(value = "0",message = "二级固定比例最小值是0%")
    @DecimalMax(value = "50",message = "二级固定比例最大值是50%")
    private BigDecimal secondLevelRatio;
}
